package com.zhan.easyexcelorder.service;


import com.zhan.easyexcelorder.model.SysUser;
import com.zhan.easyexcelorder.vo.AddressBookVO;
import com.zhan.easyexcelorder.vo.SysUserVO;
import com.zhan.jpa.service.AbstractService;
import com.zhan.utils.page.QueryCondition;

import java.util.List;
import java.util.Set;

public interface SysUserService extends AbstractService<SysUser> {
    List<SysUser> findSysUserByRoleId(Long roleId);

    SysUser loginSelect(String username) throws Exception;

    SysUser deleteUserRoles(SysUser sysUser) throws Exception;

    Integer changePassword(String id, String oldPassword, String newPassword) throws Exception;

    List<SysUser> findSysUserByApproval(Long userId);

    List<AddressBookVO> findAddressBook(Long userId);

    Set<Long> getUserIds();

    Integer changeDeviceToken(String deviceToken, Integer deviceType, Long userId);

    List<SysUserVO> getAll(QueryCondition condition);
}
